package io.cloud.tec.ant_design_vue_pro.web;

import io.cloud.tec.ant_design_vue_pro.biz.FreeServiceService;
import io.cloud.tec.ant_design_vue_pro.dto.FreeServiceRespDTO;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("api/free-service")
@AllArgsConstructor
public class FreeServiceWeb {

    FreeServiceService freeServiceService;

    @GetMapping("list")
    public List<FreeServiceRespDTO> list() {
        return freeServiceService.list();
    }
}
